<form id="add_new_chapter-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('章节名称')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title" data-rule="required" class="form-control" name="row[title]" type="text">
        </div>
    </div>

    <input id="c-bid" class="form-control" name="row[bid]" value="{$book['id']}" type="hidden">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('章节内容')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-content" class="form-control editor" rows="20" name="row[content]" cols="50"></textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('是否收费')}:</label>
        <div class="col-xs-12 col-sm-8">
            <!--<input id="c-sex" data-rule="required" class="form-control" name="row[sex]" type="number" value="1">-->
            {:build_radios('row[is_free]', ['1'=>__('免费'),'2'=>__('收费')])}
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
